import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import getApi from "./api/request";
import ScoketService from "./utils/scoket_service";
// 对服务端进行连接
ScoketService.Instance.connect();
Vue.prototype.$socket = ScoketService.Instance;
// 引入全局样式
import "./assets/css/global.less";
import "../src/assets/font/iconfont.css";
Vue.config.productionTip = false;

// 将全局的echarts对象挂载到Vue的原型对象上
Vue.prototype.$echarts = echarts;
// 将包含请求方法的对象挂载到Vue的原型对象上
Vue.prototype.$getApi = getApi;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
